from django.db import models
from .badge import Badge


class Article(models.Model):
    title = models.CharField('Title', max_length=200)
    badge = models.ForeignKey(Badge, on_delete=models.DO_NOTHING, verbose_name='Badge', blank=True, null=True)

    class Meta:
        verbose_name = 'Article'
        verbose_name_plural = 'Article'

    def __str__(self):
        return self.title
